package com.example.nonacademic_education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.nonacademic_education.data.request.LoginR;
import com.example.nonacademic_education.entity.Admin;
import com.example.nonacademic_education.util.R;

import javax.servlet.http.HttpServletRequest;

/**
 * @author xinmiao
 * @description
 * @date 2023/3/28 14:46
 */
public interface AdminService extends IService<Admin> {
    R getList(Integer page, Integer size, String name, Long departmentId);

    R addOne(Admin admin);

    R updateOne(Admin admin);

    R deleteOne(Long id);

    R login(LoginR admin, HttpServletRequest request);

    R getAdminByName(String name,Long departmentId);

    R updateOneself(Admin admin);

    R resetPassword(LoginR loginR);

    R getPersonalInfo();

    R resetAdminPassword(String username);

    R enableAccount(String id, int able);
}
